home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-04-19 | 494 b | 31 lines | [TEXT/MPS ] |
-
- UNIT SampleINIT; {stand-alone code is written as a UNIT}
-
- INTERFACE
-
- USES
- Types, Resources, Sound;
-
- {VAR
- can’t define any globals…well, not yet anyway}
-
- PROCEDURE PlayZoo;
-
- IMPLEMENTATION
-
- PROCEDURE PlayZoo;
- VAR
- numSnds, i : INTEGER;
- theSnd : Handle;
- playStatus : OSErr;
- BEGIN
- numSnds := CountResources('snd ');
- FOR i := 1 TO numSnds DO BEGIN
- theSnd := GetIndResource('snd ',i);
- IF theSnd <> NIL THEN
- playStatus := SndPlay(NIL,theSnd,FALSE);
- END;
- END;
-
- END.
-